package cn.bdqn.dao;

import cn.bdqn.pojo.Integral;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 刘旻昊
 * @Date: Created in 2020/6/22  19:07
 * 积分
 */
@Repository
@Mapper
public interface IntegralMapper {
    List<Integral> listAll();

    int del(@Param("id") Integer id);

    int insert(Integral integral);
    //@Param("name")String name,@Param("schoolName")String schoolName,@Param("className") String className,@Param("address")String address

    Integral listAllByid(@Param("id") Integer id);

    Integer upd(Integral integral);

    //查询到用户的签到时间
    List<Integral> getIntegrall(@Param("staffid") Integer staffid,@Param("text") String text);
}